/*
 * @作者: 京涛
 * @时间: 2020-09-18 09:53:12
 * @最后修改时间: 2020-09-19 11:10:29
 * @FilePath: \曲美家具项目\js\hotMoneyZone.js
 * @项目名称: 每天都要记得写代码啊！
 */
// 倒计时功能
function countDown() {
  var date = new Date();
  var aimDate = new Date("2021-02-01 00:00:00");
  var cz = (aimDate.getTime() - date.getTime()) / 1000;
  var day = Math.floor(cz / 60 / 60 / 24);
  var hours = Math.floor(cz / 60 / 60 - day * 24);
  var minutes = Math.floor(cz / 60) - day * 24 * 60 - hours * 60;
  var seconds =
    Math.floor(cz) - day * 24 * 60 * 60 - hours * 60 * 60 - minutes * 60;
  return day + "天  " + hours + ":" + minutes + ":" + seconds;
}
$(window).ready(function () {
  setInterval(function () {
    $(".countDown b").text(countDown());
  }, 1000);
});
